mt76: Use the correct hweight8() function
authorBen Hutchings <ben@decadent.org.uk>
Tue, 12 Feb 2019 15:20:48 +0000 (15:20 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commit66313e72049d8827a7d15b5c308baf13443031fc
treed9f951f73f6b583d2dfac3396f6e37a473a86fcc
parent0099047eab8964d9ce3d3824f02102f2f2069c5f
mt76: Use the correct hweight8() function

mt76_init_stream_cap() and mt76_get_txpower() call __sw_hweight8()
directly, but that's only defined if CONFIG_GENERIC_HWEIGHT is
enabled.  The function that works on all architectures is hweight8().

Fixes: 551e1ef4d291 ("mt76: add mt76_init_stream_cap routine")
Fixes: 9313faacbb4e ("mt76: move mt76x02_get_txpower to mt76 core")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[bwh: For 4.19, drop change in mt76_get_txpower()]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name mt76-use-the-correct-hweight8-function.patch
drivers/net/wireless/mediatek/mt76/mac80211.c